const { createHash } = require("crypto");
const { orgID, rootID} = require("../generator");

module.exports = {
    up: (queryInterface, Sequelize) => {
        return queryInterface.bulkInsert(
            "t_org",
            [
                {
                    id: orgID,
                    org_name: "画屏",
                    org_url: "http://portal.boe.com.cn",
                    create_user_id: rootID,
                    modify_user_id: rootID,
                    create_time: new Date(),
                    modify_time: new Date()
                },
                {
                    id: "thisistestid1",
                    org_name: "My Organizations",
                    org_url: "http://portal.boe.com.cn",
                    create_user_id: rootID,
                    modify_user_id: rootID,
                    create_time: new Date(),
                    modify_time: new Date()
                },
            ],
            {}
        );
    },

    down: (queryInterface, Sequelize) => {
        return queryInterface.bulkDelete("t_org", null, {});
    }
};
